{//教务课时单管理模板}
<include file="Public:header" />
<load file="__ROOT__/js/datepick/jquery.datepick.css" />
<load file="__ROOT__/js/datepick/jquery.datepick.js" />
<load file="__ROOT__/js/datepick/jquery.datepick-zh-CN.js" />
<script type="text/javascript">
    $(function(){
        $(document).ready(function(){
            $('#input_begin_date').datepick({dateFormat: 'yy_mm_dd'});
            $('#input_stop_date').datepick({dateFormat: 'yy_mm_dd'});
            $('#sk_begin_date').datepick({dateFormat: 'yy_mm_dd'});
            $('#sk_stop_date').datepick({dateFormat: 'yy_mm_dd'});
        });
        function isNumber(field)
         {
            var   Ret   =   true;
            var   NumStr= "0123456789 ";
            var   chr;
            for   (i=0;i <field.length;++i)
            {
            chr=field.charAt(i);
            if   (NumStr.indexOf(chr,0)==-1)
            {
            Ret=false;
            }
            }
            return(Ret);
        }
    });
</script>
<div class="body">
    <form  method="get" action="{:U('ppts/jw_keshidan_manger')}" name="search">
    <b>课时单管理：</b><br /><br />
    搜索：<br />
    录入日期：<input type="text" size="7" style="cursor: pointer;" id="input_begin_date" name="input_begin_date" value="{$input_begin_date}" readonly />-
    <input type="text" size="7" style="cursor: pointer;" id="input_stop_date" name="input_stop_date" value="{$input_stop_date}" readonly />
     上课日期：
     <input type="text" size="7" style="cursor: pointer;" id="sk_begin_date" name="sk_begin_date" value="{$sk_begin_date}" readonly />-
     <input type="text" size="7" style="cursor: pointer;" id="sk_stop_date" name="sk_stop_date" value="{$sk_stop_date}" readonly /><br />
     &nbsp;上课状态：
     <select name="shangke_kind">
         <option value="all" <php>if($shangke_kind=='all') echo 'selected';</php>>全部</option>
         <option value="正常" <php>if($shangke_kind=='正常') echo 'selected';</php>>正常</option>
         <option value="调课" <php>if($shangke_kind=='调课') echo 'selected';</php>>调课</option><option value="加课">加课</option>
         <option value="第一次上课" <php>if($shangke_kind=='第一次上课') echo 'selected';</php>>第一次上课</option>
     </select>
      &nbsp;授课类型：
      <select name="shouke_kind">
          <option value="all" <php>if($shouke_kind=='all') echo 'selected';</php>>全部</option>
         <option value="普通一对一" <php>if($shouke_kind=='普通一对一') echo 'selected';</php>>普通一对一</option>
         <option value="3A一对一" <php>if($shouke_kind=='3A一对一') echo 'selected';</php>>3A一对一</option>
     </select>
      
      &nbsp;科目：
      <select name="kemu">
          <option value="all" <php>if($kemu=='all') echo 'selected';</php>>全部</option>
         <option value="语文" <php>if($kemu=='语文') echo 'selected';</php>>语文</option>
                <option value="数学" <php>if($kemu=='数学') echo 'selected';</php>>数学</option>
                <option value="英语" <php>if($kemu=='英语') echo 'selected';</php>>英语</option>
                <option value="物理" <php>if($kemu=='物理') echo 'selected';</php>>物理</option>
                <option value="化学" <php>if($kemu=='化学') echo 'selected';</php>>化学</option>
                <option value="生物" <php>if($kemu=='生物') echo 'selected';</php>>生物</option>
                <option value="历史" <php>if($kemu=='历史') echo 'selected';</php>>历史</option>
                <option value="地理" <php>if($kemu=='地理') echo 'selected';</php>>地理</option>
                <option value="政治" <php>if($kemu=='政治') echo 'selected';</php>>政治</option>
     </select>
      <input type="submit" value="检索" />
    </form>
    <br /><br />
    <table width="800" border="1" cellpadding="0" cellspacing="0" style="border-collapse:collapse" bordercolor="#000000">
    <tr>
        <td width="7%" align="center">学员id</td>
        <td width="7%" align="center">姓名</td>
        <td width="10%" align="center">年级</td>
        <td width="10%" align="center">授课类型</td>
        <td width="10%" align="center">科目</td>
        <td width="20%" align="center">上课时间</td>
        <td width="7%" align="center">授课教师</td>
        <td width="7%" align="center">消耗课时</td>
        <td width="7%" align="center">剩余课时</td>
        <td width="7%" align="center">上课状态</td>
        <td width="8%" align="center">操&nbsp;&nbsp;&nbsp;&nbsp;作</td>
    </tr>
    <foreach name="list" item="vo">
        <tr>
            <td align="center">{$vo.stu_id}</td>
            <td align="center">{$vo.stu_name}</td>
            <td align="center">{$vo.year_kind}</td>
            <td align="center">{$vo.sk_kind}</td>
            <td align="center">{$vo.kemu}</td>
            <td align="center">{$vo.sk_begin}-<php>echo substr($vo['sk_stop'],11);</php></td>
            <td align="center">{$vo.name}</td>
            <td align="center">{$vo.xh_keshi}</td>
            <td align="center">剩余课时</td>
            <td align="center">{$vo.kind}</td>
            <td align="center">[改]
            <php>
                if($vo['shenhe']==0){
                    echo '--[<a href="',U('ppts/jw_keshidan_del?id='.$vo['id']),'">删</a>]';
                }

            </php>

            </td>
        </tr>
    </foreach>
    
    
</table>
    <br />
    <br />
</div>
<include file="Public:ender" />